函数:函数是定义一次并无限次调用以重用它们的代码片段。
- 点击并观看不明飞行物。让我们使用一个函数一次绑架一头奶牛!在看.
- 在ufo上方使用Define Function 。 move_left( 125 )并将函数命名为 abduct( abduct() 。
- 缩进接下来的十行代码,直到并包括beam 。 hide()一次,所以它们在函数中。
- 在每个.hide()上方使用Function Call并将函数名称更改为abduct() 。点击跑!
To navigate the page using the TAB key, first press ESC to exit the code editor.